#!usr/bin/env python 
# -*- coding: utf-8 -*-
__author__ = '锄禾'

class Page:
    def __init__(self):
        self.nodesList = []
        self.nodesInfoList = []
        self.nodesNum = 0
        self.clickableNodes = []
        self.clickableNodesNum = 0
        self.scrollableNodes = []
        self.scrollableNodesNum = 0
        self.longClickableNodes = []
        self.longClickableNodesNum = 0
        self.editTexts = []
        self.editTextsNum = 0
        self.backBtn = None
        self.currentActivity = ''
        self.package = ''
        self.entry = None
        self.entryNum = 0
        self.lastPage = None
        self.lastPageNum = 0

    # def add_node(self, device, app, node):
    #     self.nodesList.append(node)
    #     if node is not None and node.bounds != '[0,0][0,0]':
    #         self.nodesList.append(node)
    #         self.nodesInfoList.append(node.nodeInfo)